textview: Look up the drop location iter on the right coordinates on DND
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 24 Sep 2015 18:25:26 +0000 (20:25 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 24 Sep 2015 18:47:55 +0000 (20:47 +0200)
commitf2fd655754407103f8fb9b2c3e7586fb595ab917
tree3c363ad38057e8f39b337c304823942f937175a5
parent0f86e37dae77e67fd5a79365362826bf48798390
textview: Look up the drop location iter on the right coordinates on DND

We are passing widget coordinates to gtk_text_view_window_to_buffer_coords()
which expects coordinates to be relative to the text window in this case.
This may result in drop coordinates being displaced if the side windows to
the top/left sides are visible and taking space, so the DnD indicator will
point to the wrong position.

This can be seen on gnome-builder and gedit when displaying line numbers.
gtk/gtktextview.c